Introduction
Minor axis ticks are used to divide scale intervals into smaller logical intervals. This can be done automatically or specified manually.
Smart Minor Ticks (Automatic)
Smart minor ticks will automatically determine a logical minor interval considering the scale's major intervals. For example, a time interval of three months will automatically place a minor tick for every month. To use this feature simply set an axis' SmartMinorTicks property to true.
[C#]
Chart.XAxis.SmartMinorTicks = true;
[Visual Basic]
Chart.XAxis.SmartMinorTicks = True
Sample: AxisSmartMinorTicks.aspx |
- Smart minor ticks are only generated when the interval is determined automatically as opposed to explicitly specified .
- If smart minor ticks are less than the specified Axis.MinimumInterval, they will not be generated.
Manual Minor Ticks
Minor tick intervals can be controlled through the following axis properties:
- MinorInterval
Gets or sets a numeric value that determines the interval of minor axis ticks. - MinorTicksPerInterval
Gets or sets the number of minor axis ticks generated between major axis ticks. - MinorTimeIntervalAdvanced
Gets or sets a TimeIntervalAdvanced object that determines the interval of minor axis ticks on a time scale.
Minor Tick Manipulation
While minor ticks don't traditionally have labels or any special styling, in .netCHARTING terms it's just another axis tick. If needed, the minor ticks can have labels, extra long or thick lines etc. All the functionality of an axis tick is available to minor ticks. One difference is that minor ticks will not influence the grid with regards to alternating grid colors of an axis (AlternateGridBackground).
Sample: AxisMinorTicksTrick.aspx |